<!DOCTYPE html>
<html lang="en">
<head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Document</title>
</head>
<body>
      <script>
            var xhr = new XMLHttpRequest();
            xhr.open("GET" , "./09_weather.php?city=苏州");
            xhr.send();
            xhr.onreadystatechange = function(){
                  if( xhr.readyState === 4 && /^2\d{2}/.test(xhr.status)){
                        console.log(xhr.responseText);
                        
                        // var data= JSON.parse(xhr.responseText);
                        // console.log(data);
                  }
            }

      </script>
</body>
</html>